// 假题库数据
const questions = [
  {
    id: 1,
    type: 'single',
    tags: ['基础', '语法'],
    difficulty: '简单',
    question: 'Java中int的默认值是？',
    options: ['0', 'null', 'undefined', '1'],
    answer: ['0'],
    explanation: 'Java中int的默认值为0。',
  },
  {
    id: 2,
    type: 'multiple',
    tags: ['集合'],
    difficulty: '中等',
    question: '以下哪些类实现了List接口？',
    options: ['ArrayList', 'HashMap', 'LinkedList', 'HashSet'],
    answer: ['ArrayList', 'LinkedList'],
    explanation: 'ArrayList和LinkedList都实现了List接口。',
  },
  {
    id: 3,
    type: 'judge',
    tags: ['JVM'],
    difficulty: '简单',
    question: 'JVM是Java虚拟机的缩写。',
    options: ['正确', '错误'],
    answer: ['正确'],
    explanation: 'JVM即Java Virtual Machine。',
  },
  {
    id: 4,
    type: 'coding',
    tags: ['编程题', '基础'],
    difficulty: '较难',
    question: '请写出一个Java方法，判断一个数是否为素数。',
    options: [],
    answer: ['public boolean isPrime(int n) { /* ... */ }'],
    explanation: '常规素数判断方法。',
  },
];

export default questions; 